package com.zx.onlineeducation.service.edu.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程分类树形结构 视图 实体类
 *
 * @author 郑雪
 * @since 2022-01-12
 */
@Data
@ApiModel(value = "SubjectTreeVO", description = "课程分类树形结构视图对象")
public class SubjectTreeVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程分类ID")
    private String id;

    @ApiModelProperty("类别名称")
    private String title;

    @ApiModelProperty("上级ID")
    private String parentId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("是否和搜索的关键字匹配")
    private Boolean match = false;

    @ApiModelProperty("如果和搜索的关键字匹配，红色显示出匹配的部分，完整的html代码")
    private String matchHtml;

    @ApiModelProperty("下级集合")
    private List<SubjectTreeVO> children;
}
